﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class BUS_KhoaHoc
    {
        public static List<DTO_KhoaHoc> SelectKhoaHoc()
        { 
            return DAO.DAO_KhoaHoc.SelectKhoaHoc();
        }
        public static bool deleteKhoaHoc(string makh)
        {
            return DAO.DAO_KhoaHoc.deleteKhoaHoc(makh);
        }

        public static bool insertKhoaHoc(DTO_KhoaHoc khoahoc)
        {
            return DAO.DAO_KhoaHoc.insertKhoaHoc(khoahoc);
        }

        public static bool updateKhoaHoc(DTO_KhoaHoc khoahoc, string makhoahoc_cu)
        {
            return DAO.DAO_KhoaHoc.updateKhoaHoc(khoahoc, makhoahoc_cu);
        }
        public static List<DTO_KhoaHoc> SelectKhoaHoc_theokhoa(string makhoa)
        {
            return DAO.DAO_KhoaHoc.SelectKhoaHoc_theokhoa(makhoa);
        }
    }
}
